package com.cci.kangdao.service;

import com.cci.kangdao.dao.model.WorkOrderSynchroT;

import java.util.List;

public interface WorkOrderSynchroService {

	boolean add(WorkOrderSynchroT record);

	boolean updateById(WorkOrderSynchroT record);

	WorkOrderSynchroT selectByStatusAndOrderNo(String orderNo,Integer processStatus);

	WorkOrderSynchroT selectById(Long id);

	/**
	 *  同步状态失败的记录
	 * @return
	 */
	List<WorkOrderSynchroT> selectByStatus(String channelName);
	/**
	 *  同步状态失败的分组记录
	 * @return
	 */
	List<String> selectGroupOrderNoByStatus(String channelName);
	/**
	 *  同步工单信息失败的记录
	 * @return
	 */
	List<WorkOrderSynchroT> selectByInfo(String channelName);
	/**
	 *  根据工单id查询同步工单状态失败的记录
	 * @return
	 */
	List<WorkOrderSynchroT> selectByOrderNo(String orderNo);
	
}
